# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-inflection
_pkgname=inflection
pkgver=0.5.0
pkgrel=0
pkgdesc="Port of Ruby on Rails' inflector to Python"
url="https://github.com/jpvanhal/inflection"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/jpvanhal/inflection/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-inflection" # Backkwards compatibility
provides="py-inflection=$pkgver-r$pkgrel" # Backkwards compatibility

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="65acd5f51071a6ff4073a741102507a93e6a373a49676cc8f84778eb365705c8c58e8314426512f027243d11ce984115970358368de6c1b2f13692971f199e50  inflection-0.5.0.tar.gz"
